<form action="/user/create" method="POST" id="form-signin" class="form-signin">
	<h2 class="form-signin-heading">Crear una cuenta</h2>

	<% if(flash && flash.err) { %>
		<ul class="alert alert-success">
			<% Object.keys(flash.err).forEach(function(error){ %>
				<li><%- JSON.stringify(flash.err[error]) %></li>
			<% }) %>
		</ul>
  	<%  } %>
	
	<input type="text" class="form-control" placeholder="Nombre" name="name">
	
	<input type="text" class="form-control" placeholder="Usuario" name="username">
	
	<input type="text" class="form-control" placeholder="Correo eléctronico" name="email">
	
	<input id="password" type="password" class="form-control" placeholder="Contraseña" name="password">
	
	<input id="password-confirm"  type="password" class="form-control" placeholder="Vuelve a escribir la contraseña" name="confirmation">
	<br />
	
	<input type="submit" class="btn btn-lg btn-primary btn-block" value="Crear cuenta">
	<input type="hidden" name="_csrf" value="<%= _csrf %>">
</form>
